package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 区域参数扩展配置对象 account_config_ext
 *
 * @author jing
 * @date 2021-04-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class AccountConfigExt extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 品牌id
     */
    @NotNull(message = "ver.accountId.notNull")
    private Integer accountId;

    /**
     * 参数名称
     */
    @NotNull(message = "ver.paramKey.notnull")
    private String paramKey;

    /**
     * 参数值
     */
    private String paramValue;

    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 备注
     */
    private String remark;

    public AccountConfigExt(Integer accountId, String paramKey) {
        this.accountId = accountId;
        this.paramKey = paramKey;
    }

    public AccountConfigExt(Integer accountId, String paramKey, String paramValue) {
        this.accountId = accountId;
        this.paramKey = paramKey;
        this.paramValue = paramValue;
    }

    public AccountConfigExt(Integer accountId) {
        this.accountId = accountId;
    }
}
